package QL;

import java.util.List;
import java.util.ArrayList;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

public class ButlerGameRoomPlatformStat implements IQLResponse
{
    /// <summary>
    /// 游戏标识 1捕鱼3D 2捕鱼2D 3水浒传 4拉霸机 5打地鼠 6抢红包 7龙虎斗
    /// </summary>
    public long GameFlag;

    /// <summary>
    /// 总水位
    /// </summary>
    public long WaterLine;

    /// <summary>
    /// 总抽水
    /// </summary>
    public long WaterLinePull;

    /// <summary>
    /// 总放水
    /// </summary>
    public long WaterLinePush;

    /// <summary>
    /// 总彩金池
    /// </summary>
    public long Bonus;

    /// <summary>
    /// 总抽彩
    /// </summary>
    public long BonusPull;

    /// <summary>
    /// 总放彩
    /// </summary>
    public long BonusPush;

    /// <summary>
    /// 总税收
    /// </summary>
    public long FeeGrab;

    @Override
    public void DeserializeFromJson(JSONObject jsonObj)
    {
        JSONObject t = jsonObj;
        if (t.has("game_flag"))
            GameFlag = t.getLong("game_flag");
        if (t.has("water_line"))
            WaterLine = t.getLong("water_line");
        if (t.has("water_line_pull"))
            WaterLinePull = t.getLong("water_line_pull");
        if (t.has("water_line_push"))
            WaterLinePush = t.getLong("water_line_push");
        if (t.has("bonus"))
            Bonus = t.getLong("bonus");
        if (t.has("bonus_pull"))
            BonusPull = t.getLong("bonus_pull");
        if (t.has("bonus_push"))
            BonusPush = t.getLong("bonus_push");
        if (t.has("fee_grab"))
            FeeGrab = t.getLong("fee_grab");
    }
}
